<? $cnt = count($specialHotels); ?>

<div class="special_offer clearfix" id="special">

    <h1><?= lang('t.special_offer'); ?></h1>

    <ul class="bxslider clearfix">

        <? for ($i = 0; $i < $cnt; $i++): ?>
                <? //if ($i == 3) break; ?>
                <li style="opacity:0">
                    <?
                    $obj_name = URLify::filter($specialHotels[$i]->object_name);
                    $href = lang_url('accommodation/' . $obj_name . '-' . $specialHotels[$i]->object_ID . '?preview=1&room_id=' . $specialHotels[$i]->lowest_price_room_id);
                    $thumbnail = HOST_URL_HOTELS . 'gallery/' . $specialHotels[$i]->photo_path . '/thumb_207x136/' . $specialHotels[$i]->photo_name;

                    $stars = (int) $specialHotels[$i]->object_number_of_stars;
                    ?>


                    <a href="<?= $href ?>">

                        <img src="<?= $thumbnail ?>" alt="<?= $specialHotels[$i]->object_name ?>" width="194" /> 


                        <div class="info">

                            <h3 class="ellipsis"><?= $specialHotels[$i]->object_name ?></h3>
                            <? if ($stars > 0): ?>
                                <div class="stars small black star-<?= $stars ?>"></div>
                            <? endif; ?>

                            <div class="price ellipsis">
                                <?= currency_sign() ?> <?= round($specialHotels[$i]->lowest_price) ?>
                                <span class="per_person" <?= currency_sign() === ' RUB ' ? "style='display:none'" : ""; ?>> /
                                    <?
                                    $selling_type = lang('room.selling_type_short');
                                    echo $selling_type[(int) $specialHotels[$i]->lowest_selling_billing_type_ID];
                                    ?></span>
                            </div>

                            <span class="btn" href="javascript:">Book now</span>

                        </div>


                    </a>
                </li>

            <? endfor; ?>

    </ul>

</div>